package cn.achao.csr.system.mapper;

import cn.achao.csr.api.model.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author achao
 * @description 针对表【sys_user(用户表)】的数据库操作Mapper
 * @createDate 2025-01-13 22:54:19
 * @Entity cn.achao.csr.api.model.entity.SysUser
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    SysUser selectUserByUserAccount(String userAccount);

    /**
     * 根据扩展信息Id查下用户信息
     * @param expandId
     */
    @Select("select * from sys_user where expand_id = #{expandId}")
    SysUser selectOneByEId(Long expandId);
}




